package com.mida.dms.knw.mapper;

import com.mida.dms.knw.entity.KnwIndividualRelation;
import com.mida.dms.knw.entity.vo.KnwIndividualRelationPage;
import com.mida.dms.knw.entity.vo.KnwIndividualRelationVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface KnwIndividualRelationMapper {
    int deleteByPrimaryKey(Long individualRelationSoid);

    int insert(KnwIndividualRelation record);

    int insertSelective(KnwIndividualRelation record);

    KnwIndividualRelationVo selectByPrimaryKey(Long individualRelationSoid);

    int updateByPrimaryKeySelective(KnwIndividualRelation record);

    int updateByPrimaryKey(KnwIndividualRelation record);

    int selectDistinct(@Param("sourceIndividualSoid") Long sourceIndividualSoid, @Param("targetIndividualSoid") Long targetIndividualSoid,@Param("conceptualSoid") Long conceptualSoid);

    List<KnwIndividualRelation> selectListDistinct(@Param("sourceIndividualSoid") Long sourceIndividualSoid, List<Long> targetIndividualSoidList, @Param("conceptualSoid") Long conceptualSoid);

    int findPageCount(KnwIndividualRelationPage npage);

    List<KnwIndividualRelationVo> findRelationPage(KnwIndividualRelationPage npage);
}